﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4._1
{
    public class FishingMan : IEventHandler<IEventData>
    {
        //省略其他代码
        public void HandleEvent(IEventData eventData)
        {
            if (eventData is FishingEventData)
            {
                //do something
            }

            //if (eventData is XxxEventData)
            //{
            //    //do something else
            //}
        }
    }
}
